package com.charlie.meetingmanagement.mapper;

import com.charlie.meetingmanagement.pojo.po.Rental;
import org.apache.ibatis.annotations.Mapper;

import java.time.LocalDate;
import java.util.List;

@Mapper
public interface RentalMapper {

    void insert(Integer meetingroomId, LocalDate meetingroomRentaldate, Integer meetingroomRentaltime,
                String rentalDescribe, Integer userId, Integer approveId);

    Long count(Integer meetingroomId, LocalDate meetingroomRentaldate, Integer meetingroomRentaltime, Integer userId,
               Integer approveId);

    List<Rental> page(Integer meetingroomId, LocalDate meetingroomRentaldate, Integer meetingroomRentaltime,
                      Integer userId, Integer approveId);

    void deleteByIdAndDateTime(Rental rental);
}
